package springboot.springboot06_ssmp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author daiqiang
 * @since 2024-01-17
 */
@Data
@TableName("homeNumber")
public class HomeNumber implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String card;

    private LocalDate birthday;

    private String admin;

    private String phonenumber;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    @Override
    public String toString() {
        return "HomeNumber{" +
            "id=" + id +
            ", name=" + name +
            ", card=" + card +
            ", birthday=" + birthday +
            ", admin=" + admin +
            ", phonenumber=" + phonenumber +
        "}";
    }
}
